/*
 * CommandLineParser.h
 *
 *  Created on: 23/03/2011
 *      Author: luis
 */

#ifndef COMMANDLINEPARSER_H_
#define COMMANDLINEPARSER_H_

#include "Executor.h"
#include "Constants.h"
#include <stdlib.h>

typedef struct {
	int sizeOfParams;
	char ** argv;
	int paramCounter;
	char * errorMsj;
	Executor * executor;
	int mode;
}CommandLineParser;

void command_line_parser_create(CommandLineParser * parser, int size, char ** argv);

void command_line_parser_parse_parameters(CommandLineParser * parser);

void command_line_parser_parse_string(CommandLineParser * parser, char ** argument);

Executor * command_line_parser_get_executor(CommandLineParser * parser);

char * command_line_get_error(CommandLineParser * parser);

void command_line_parser_delete(CommandLineParser * parser);

#endif /* COMMANDLINEPARSER_H_ */
